const w = document.querySelector('.w');
w.addEventListener("click", () => {
    $('#myModal').modal('show')
})

const name = document.querySelector('.name');
const sky = document.querySelector('.sky');


sky.addEventListener('click', () => {
    alert('你点击的是刘皓天的功能')
})

//DIV点击事件
name.addEventListener('click', function () {
    const color1 = getRandomNum(0, 255)
    const color2 = getRandomNum(0, 255)
    const color3 = getRandomNum(0, 255)
    name.style.backgroundColor = `rgb(${color1},${color2},${color3})`
})



function getRandomNum(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
}




//你们好

window.onload = function () {
    const LXD = document.querySelector(".LXD button");
    LXD.addEventListener("click", function () {
        alert("我是刘小弟的功能---🐖🐖🐖");
        location.href=" http://lu-renjiajia.gitee.io/information-management"
    })
}


const kiss = document.querySelector('.kiss');
const kris = document.querySelector('.kisskiss');
kiss.addEventListener('click', function (e) {
    $('#myModalkiss').modal('show')
    document.body.style.backgroundImage = 'url(./images/dollar.jpg)'
    kris.style.backgroundImage = 'none'
})

